Inside Macintosh: Macintosh Toolbox Essentials

Previous | Chapter Top | Chapter Contents | Next

Window Kinds

When it creates a window, the Window Manager places a value in the windowKind field of a window record that identifies how the window was created; see "The Color Window Record" for details. The windowKind field typically contains one of these values:

enum {                      /* new names for dialog kind enumerators */
    kDialogWindowKind           = 2,    /* dialog or alert window */
    kApplicationWindowKind      = 8     /* window created by an
                                        /* application */
};

enum {                  /* old names for dialog kind enumerators */
    dialogKind          = 2,        /* dialog window */
    userKind            = 8         /* user window */
};
kDialogWindowKind
I dentifies all dialog or alert box windows, whether created by system software or, indirectly through the Dialog Manager, by your application. The Dialog Manager uses this field to help it track dialog and alert box windows.
kApplicationWindowKind
Identifies a window created directly by your application.

© 1997 Apple Computer, Inc.

Previous | Chapter Top | Chapter Contents | Next